package org.dyk.seamanshousefrontdesk.repository;

import org.dyk.seamanshousefrontdesk.model.Orders;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

public interface OrdersRepository extends CrudRepository<Orders,Integer> {
    //根据 主键 获取订单信息
    public Orders findByOid(int oid);

    //根据用户ID获取相应订单
    public List<Orders> findAllByUid(int uid);
}
